import { Goods, Menus, SwiperList } from '@/types/home'
import { request } from '@/utils/request'

export const getSwiperList = () => {
  return request<SwiperList[]>({
    url: 'banner/list'
  })
}

export const getMenuList = () => {
  return request<Menus[]>({
    url: 'menu/list'
  })
}

export const getGoodsList = (data: { count: number; limitNum: number }) => {
  return request<Goods[]>({
    url: 'pro/list',
    data
  })
}
